// 导航栏路由信息



import Commodity from '@/pages/Commonity.vue'
import SortManagement from '@/pages/SortManagement.vue'
import preferential from '@/pages/preferential.vue'
import HomeFilled from '@/pages/HomeFilled.vue'
import pay from '@/pages/Pay.vue'
import UserManagement from "@/pages/UserManagement.vue"

// 商品管理
export const commodity = [
    //  // 商品管理
     {
        path:'commodity',
        name:'commodity',
        // component:()=>import('@/pages/HomeFilled.vue')
        // component:resolve=>require(['@/page/Commodity.vue'],resolve)
        component:Commodity,
        meta:{
            name:'商品管理'
        }
    },
      //  // 商品分类
      {
        path:'SortManagement',
        name:'SortManagement',
        component:SortManagement,
        meta:{
            name:'商品分类'
        }
    },
    
]
// 支付页面
export const payhome = [
    //  // 商品管理
     {
        path:'pay',
        name:'pay',
        // component:()=>import('@/pages/HomeFilled.vue')
        // component:resolve=>require(['@/page/Commodity.vue'],resolve)
        component:pay,
        meta:{
            name:'商品制作'
        }
    },
    
]
// 优惠卷
export const preferentialCard = [
    {
        path:'preferential',
        name:'preferential',
        component:preferential,
        meta:{
            name:'优惠卷管理'
        }
    }
]
// 用户管理
export const UserManagementHome = [
    {
        path:'UserManagement',
        name:'UserManagement',
        component:UserManagement,
        meta:{
            name:'用户管理'
        }
    }
]

// 导航路由
export let routerChildrens = [
    ...commodity,
    ...payhome,
    ...preferentialCard,
    ...UserManagementHome,
    {
        path:'homefilled',
        name:'homefilled',
        // component:()=>import('@/pages/HomeFilled.vue')
        // component:resolve=>require(['@/page/HomeFilled.vue'],resolve)
        component:HomeFilled
    },
]